package com.bestdreamer.exception;

public class Demo2Run {

    public static void main(String[] args) {
        MyThreadGroup group = new MyThreadGroup("我的线程组");
        Demo2MyThread[] myThreads = new Demo2MyThread[10];
        for( int i = 0; i < myThreads.length; i++){
            myThreads[i] = new Demo2MyThread(group, "线程" + (i + 1), "1");
            myThreads[i].start();
        }
        Demo2MyThread newT = new Demo2MyThread(group, "报错线程","a");
        newT.start();
    }
}
